require "dgo/tile_map/basic_map_chipset"
require "dgo/tile_map/auto_map_chipset"
require "dgo/tile_map/anime_map_chipset"
require "dgo/table/table"
require "dgo/tile_map/map_chip"
require "dgo/tile_map/map_loader"

module MapEditor
  class MapLoader
    include DGO::TileMap
    include DGO::Table

    def self.load_base_chipset(filename)
      return BasicMapChipset.new("game/map/base/#{filename}", GRID_WIDTH, GRID_HEIGHT)
    end

    def self.load_auto_chipset(filename)
      return AutoMapChipset.new("game/map/auto/#{filename}", GRID_WIDTH, GRID_HEIGHT)
    end
    
    def self.load_anime_chipset(filename)
      return AnimeMapChipset.new("game/map/anime/#{filename}", GRID_WIDTH, GRID_HEIGHT)
    end
  end
end